/* DaPrincipalException - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
package net.da.core.exception;


public class DaPrincipalException extends DaException
{
    private Throwable m_cause = null;
    
    public DaPrincipalException(String string) {
	super(6404, string);
	    m_cause = this;
    }
    
    public DaPrincipalException(String string, Throwable throwable) {
	this(string + ": " + messageForCause(throwable));
	    m_cause = throwable;
    }
    
    public DaPrincipalException(Throwable throwable) {
	this(messageForCause(throwable));
	    m_cause = throwable;
    }
    
    public Throwable getCause() {
	Throwable throwable = null;
	    throwable = m_cause;
	    return throwable;
    }
    
    private static String messageForCause(Throwable throwable) {
	String string = null;
	    String string_8_ = throwable.getMessage();
	    if (string_8_ == null || string_8_.length() == 0)
		string_8_ = throwable.getClass().getName();
	    string = string_8_;
	    return string;
    }
}
